package 实验四;

class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + " 正在执行任务");
    }
}

public class ThreadClassExample {
    public static void main(String[] args) {
        MyThread thread = new MyThread();
        thread.start();
    }
}    
